package com.lzxuni.modules.organization.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzxuni.modules.common.entity.Tree;
import com.lzxuni.modules.organization.entity.Company;
import com.lzxuni.modules.organization.entity.User;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 机构单位表 服务类
 * </p>
 *
 * @author 孙志强
 * @since 2018-12-05
 */
public interface CooperativeService extends IService<Company> {
	List<Tree> getTree(String parentId);

	Boolean insert(User user, Company company);
	Boolean update(User user, Company company);

	Object getMap(String ver);

	List<Tree> getTreeSelectTree(String nature, User user);

	List<Tree> cooperativeAssociationTree(Map map);

	Map<String,String> readExcelData(InputStream is, String originalFilename, String keyValue, User user);
}
